package bookshop.beans;

public class BookItem {
	private String bookName;
	private int totalNum;
	private int price;
	
	
	public BookItem(String bookName, int price) {
		super();
		this.bookName = bookName;
		this.price = price;
	}
	public void addNum() {
		totalNum++;
	}
	public String getBookName() {
		return bookName;
	}
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	public int getTotalNum() {
		return totalNum;
	}
	public void setTotalNum(int totalNum) {
		this.totalNum = totalNum;
	}
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	@Override
	public String toString() {
		return "BookItem [bookName=" + bookName + ", totalNum=" + totalNum + ", price=" + price + "]";
	}
	

}
